Fix list_files_git for paths in subdirs of a repo
authorMatt Brubeck <mbrubeck@limpet.net>
Thu, 11 Sep 2014 21:09:44 +0000 (14:09 -0700)
committerMatt Brubeck <mbrubeck@limpet.net>
Fri, 12 Sep 2014 21:36:48 +0000 (14:36 -0700)
commit8b07052b162e4bdf423d6e39a9999a551906daf5
tree7129b7adf7c56439a2bd7982b36bbe367218c601
parentbfe94c910bb28fe429b85ed603850a5cda246ec0
Fix list_files_git for paths in subdirs of a repo

list_files_git previously assumed that the package was always at the root of
the git repository.  This broke when trying to list files for a package in a
subdirectory of a repo, or in other cases, e.g. if the user's home directory
is a git repo.
src/cargo/sources/path.rs